package com.karry.yl.domain.personnel;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;


/**
 * 部门树结构模板
 *
 * @author Administrator
 */
public class DepartmentTreeTemplate {

    private String name; //部门名称
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id; //部门ID
    @JsonSerialize(using = ToStringSerializer.class)
    private Long pId;//父节点ID
    private Boolean open = true;
    private String iconClose= "/static/imgs/9966.ico";
    private String iconOpen="/static/imgs/9966.ico";
    private String icon="/static/imgs/9966.ico";


    public DepartmentTreeTemplate() {
    }

    public DepartmentTreeTemplate(String name, Long id, Long pId, Boolean open) {
        this.name = name;
        this.id = id;
        this.pId = pId;
        this.open = open;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getpId() {
        return pId;
    }

    public void setpId(Long pId) {
        this.pId = pId;
    }

    public Boolean getOpen() {
        return open;
    }

    public void setOpen(Boolean open) {
        this.open = open;
    }

    public String getIconClose() {
        return iconClose;
    }

    public void setIconClose(String iconClose) {
        this.iconClose = iconClose;
    }

    public String getIconOpen() {
        return iconOpen;
    }

    public void setIconOpen(String iconOpen) {
        this.iconOpen = iconOpen;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
}
